package com.yxh.springdemo;

import com.yxh.springdemo.bean.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: tidalcoast
 * @Date: 2022/6/14 16:00
 * @Description
 */
public class Main {

    public static void main(String[] args) {

        //测试构造器注入
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("application.xml");
        Student student1 = applicationContext.getBean(Student.class);
        System.out.println(student1);
    }

}
